package com.gt.self.controller;

import com.gt.common.AjaxResult;
import com.gt.self.domain.vo.PrintInfoVo;
import com.gt.self.domain.vo.ReportParamVo;
import com.gt.self.domain.vo.SynPrintInfoVo;
import com.gt.self.service.SynDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@Api(tags = "提供外部程序调用接口")
@RestController
@RequestMapping("self/synData")
//@CrossOrigin
public class SynDataController {

    @Autowired
    private SynDataService synDataService;

    @ApiOperation("同步PDF文件接口")
    @PostMapping("synPrintPDF")
    public AjaxResult synPrintPDF(@RequestBody SynPrintInfoVo synPrintInfoVo) {

        AjaxResult synResult = synDataService.synPrintPDF(synPrintInfoVo);

        return synResult;
    }

}
